<template>
  <div class="outer">
     <Tab v-for="tab in tabData" 
     :key="tab.id" 
     v-bind="tab" />

  </div>
</template>

<script>
import { v4 as uuidv4 } from "uuid";
import Tab from "./components/Tab";
export default {
    name : 'App',
    components  : {
        Tab
    },
    data (){
        return {
            tabData: [
                  { id: uuidv4(), title: "美食", list: ["火锅", "烧烤", "小龙虾"] },
        { id: uuidv4(), title: "游戏", list: ["LoL", "DNF", "CS", "Dota"] },
        {
          id: uuidv4(),
          title: "电影",
          list: ["独行月球", "智取威虎山", "绿皮书"],
        },
            ]
        }
    }
}
</script>

<style>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>